According to the C++ concepts:
Any iterator other than input_iterator is an output_iterator.
A vector<int>::const_iterator
is a random_access_iterator
, and of course that is an output_iterator
.
However, according to cppreference.com, an output_iterator
must be writable, while a vector<int>::const_iterator
is not.
Is vector<int>::const_iterator
an output_iterator
?
See also: How to check if an iterator is an output_iterator in c++?
Copyright Notice:Content Author:「xmllmx」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40901372/is-vectorintconst-iterator-an-output-iterator